﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VehicleMaintenance.Properties;

namespace VehicleMaintenance.UserControls
{
	public partial class ucElements : UserControl
	{
		public ucElements()
		{
			InitializeComponent();
		}

		
		[BrowsableAttribute(true)]
		public Image Image
		{
			get
			{
				return this.picBox.Image;
			}
			set
			{
				this.picBox.Image = Image;
			}
		}

		/// <summary>
		/// 控件显示文本
		/// </summary>
		[BrowsableAttribute(true)]
		public string Content
		{
			get
			{
				return this.lbText.Text;
			}
			set
			{
				this.lbText.Text = value;
			}
		}

		private void lbText_Click(object sender, EventArgs e)
		{
			this.OnClick(e);
		}

		private void picBox_Click(object sender, EventArgs e)
		{
			this.OnClick(e);
		}

		private void ucElements_CursorChanged(object sender, EventArgs e)
		{
			picBox.Cursor = this.Cursor;
			lbText.Cursor = this.Cursor;
		}
		
	}
}
